home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14848 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  44 lines

  1. Newsgroups: comp.lang.c++
  2. Path: spider.research.kpn.com!usenet
  3. From: Rene Bultje <R.M.Bultje@research.kpn.com>
  4. Subject: Calling C-functions in Delphi
  5. Content-Type: text/plain; charset=us-ascii
  6. Message-ID: <3161079D.5621@research.kpn.com>
  7. Sender: usenet@news.research.kpn.com (USENET News System)
  8. Nntp-Posting-Host: gd0114.research.kpn.com
  9. Content-Transfer-Encoding: 7bit
  10. Organization: KPN Research, Groningen, The Netherlands
  11. Mime-Version: 1.0
  12. Date: Tue, 2 Apr 1996 10:55:25 GMT
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Hi,
  16.  
  17. I looking for a solution for the following problem:
  18.  
  19. How can I multiply two numbers in Delphi, using a C-function 
  20.  
  21. C->>
  22. void Multiply(int number1, int number2, int *result)
  23. {
  24.   *result = (number1 * number2);
  25. }
  26.  
  27. Delphi->>
  28. Input number1;
  29. Input number2;
  30. Call Multiply();  <-- How do I have to call this function?
  31. Show  result;
  32.  
  33. There are two questions:
  34. 1. How do I declare the function Multiply to make it exportable to    
  35. Delphi.
  36. 2. And how can you pass the three arguments in the C-function.
  37.  
  38. Who can help me with this problem. 
  39.  
  40. Thanks,
  41.  
  42. Rene
  43. (R.M.Bultje@Research.Kpn.Com)
  44.